package com.qiaofang.applet.service.property.repository;

import com.qiaofang.applet.service.property.domain.PropertyContact;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PropertyContactRepository extends MongoRepository<PropertyContact, String> {
    PropertyContact findByContactIdAndPropertyUuidAndCompanyUuid(String contactId, String businessId, String companyUuid);

    List<PropertyContact> findAllByPhone1AndCorporationCode(String phone1, String corporationCode);
}
